package com.cz.run.beans.mysql;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商品统计表
 * </p>
 *
 * @author CAIYJ
 * @since 2018-05-23
 */
@TableName("product_statistics")
public class ProductStatistics extends Model<ProductStatistics> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商品ID
     */
    @TableField("product_id")
    private Integer productId;
    /**
     * 浏览次数
     */
    @TableField("visit_count")
    private Integer visitCount;
    /**
     * 评论次数
     */
    @TableField("reply_count")
    private Integer replyCount;
    /**
     * 销售总量
     */
    @TableField("sale_quantity")
    private Integer saleQuantity;
    /**
     * 销售总额
     */
    @TableField("sale_amount")
    private BigDecimal saleAmount;
    /**
     * 进货总量
     */
    @TableField("purchase_quantity")
    private Integer purchaseQuantity;
    /**
     * 进货总额
     */
    @TableField("purchase_amount")
    private BigDecimal purchaseAmount;
    /**
     * 成本均价
     */
    @TableField("cost_price")
    private BigDecimal costPrice;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getVisitCount() {
        return visitCount;
    }

    public void setVisitCount(Integer visitCount) {
        this.visitCount = visitCount;
    }

    public Integer getReplyCount() {
        return replyCount;
    }

    public void setReplyCount(Integer replyCount) {
        this.replyCount = replyCount;
    }

    public Integer getSaleQuantity() {
        return saleQuantity;
    }

    public void setSaleQuantity(Integer saleQuantity) {
        this.saleQuantity = saleQuantity;
    }

    public BigDecimal getSaleAmount() {
        return saleAmount;
    }

    public void setSaleAmount(BigDecimal saleAmount) {
        this.saleAmount = saleAmount;
    }

    public Integer getPurchaseQuantity() {
        return purchaseQuantity;
    }

    public void setPurchaseQuantity(Integer purchaseQuantity) {
        this.purchaseQuantity = purchaseQuantity;
    }

    public BigDecimal getPurchaseAmount() {
        return purchaseAmount;
    }

    public void setPurchaseAmount(BigDecimal purchaseAmount) {
        this.purchaseAmount = purchaseAmount;
    }

    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ProductStatistics{" +
        ", id=" + id +
        ", productId=" + productId +
        ", visitCount=" + visitCount +
        ", replyCount=" + replyCount +
        ", saleQuantity=" + saleQuantity +
        ", saleAmount=" + saleAmount +
        ", purchaseQuantity=" + purchaseQuantity +
        ", purchaseAmount=" + purchaseAmount +
        ", costPrice=" + costPrice +
        ", createTime=" + createTime +
        "}";
    }
}
